#include "Shm.hpp"

int main()
{
    SharedMemory shm;
    //创建和挂载
    shm.Get();
    sleep(5);
    shm.Attach();
    sleep(5);

    //使用
    char c ='A';
    for(; c <= 'Z'; c++)
    {
        shm.Push(c);
        sleep(1);
    }

    //去挂载和删除
    shm.Detach();
    sleep(3);

    return 0;
}